package com.sjms._07_结构_装饰者模式;

/**
 * 加肠
 */
public class DecorateAddChang extends ADecorate {

    DecorateAddChang(APizza abstractPizza) {
        super(abstractPizza);
    }

    @Override
    String food() {
        return aPizza.food() + "【+肠】";
    }

    @Override
    int price() {
        return aPizza.price() + 1;
    }
}
